projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40c0826
)
a11y: Do not leak the ATContext in GtkStackPage
author
Emmanuele Bassi
<ebassi@gnome.org>
Wed, 11 Nov 2020 18:08:16 +0000
(18:08 +0000)
committer
Emmanuele Bassi
<ebassi@gnome.org>
Wed, 11 Nov 2020 18:33:15 +0000
(18:33 +0000)
GtkStackPage is not a widget, so it must release the reference on the
ATContext it owns.
gtk/gtkstack.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstack.c
b/gtk/gtkstack.c
index bb6ecfeb12352b101185e95a9804d5c0e3947dad..3d70475ff9a79270ef940544e19deb30bce7d900 100644
(file)
--- a/
gtk/gtkstack.c
+++ b/
gtk/gtkstack.c
@@
-274,6
+274,8
@@
gtk_stack_page_finalize (GObject *object)
g_object_remove_weak_pointer (G_OBJECT (page->last_focus),
(gpointer *)&page->last_focus);
+ g_clear_object (&page->at_context);
+
G_OBJECT_CLASS (gtk_stack_page_parent_class)->finalize (object);
}